home *** CD-ROM | disk | FTP | other *** search
- *** ../dist/expand.c Thu Dec 16 07:29:28 1993
- --- expand.c Fri Dec 17 16:41:07 1993
- ***************
- *** 61,72 ****
- --- 61,87 ----
- */
- #include <sys/param.h>
- #include <sys/stat.h>
- + #ifdef _ABI_SOURCE
- + #include <dirent.h>
- + #else
- #include <sys/dir.h>
- + #endif
- #include <pwd.h>
- #include <ctype.h>
- #include <libc.h>
- #include <setjmp.h>
-
- + #if __STDC__
- + static glob(char *);
- + static matchdir(char *);
- + static execbrc(char *, char *);
- + static match(char *, char *);
- + static amatch(char *, char *);
- + static addone(char *, char *);
- + static addpath(char);
- + static gethdir(char *);
- + #endif
- +
- static jmp_buf sjbuf;
-
- static char pathbuf[MAXPATHLEN];
- ***************
- *** 148,154 ****
- --- 163,173 ----
- static matchdir(pattern)
- char *pattern;
- {
- + #ifdef _ABI_SOURCE
- + register struct dirent *dp;
- + #else
- register struct direct *dp;
- + #endif
- DIR *dirp;
-
- dirp = opendir(path);
- ***************
- *** 332,339 ****
- --- 351,362 ----
- while (*ep++ = *s2++);
- }
-
- + #ifdef __STDC__
- + static addpath(char c)
- + #else
- static addpath(c)
- char c;
- + #endif
- {
- if (pathp >= lastpathp)
- return(1);
-